package I;

import javax.swing.*;
import java.awt.*;

/**
 * 改密界面
 */
public class ChangePwdPanel extends JPanel {
    private ImageIcon sss = new ImageIcon("picture/buttonSure.jpg");
    private JLabel pwdLabel1 = new JLabel("原密码：");
    private JLabel pwdLabel2 = new JLabel("新密码：");
    private JLabel pwdLabel3 = new JLabel("确认新密码：");
    private JPasswordField pwdField1 = new JPasswordField();
    private JPasswordField pwdField2 = new JPasswordField();
    private JPasswordField pwdField3 = new JPasswordField();
    private Font font = new Font("黑体",Font.BOLD,20);
    private JButton loginBtn = new JButton(sss);
    public ChangePwdPanel(){
        this.setLayout(null);
        pwdLabel1.setBounds(300,200,120,50);
        pwdLabel1.setFont(font);
        pwdLabel2.setBounds(300,300,120,50);
        pwdLabel2.setFont(font);
        pwdLabel3.setBounds(300,400,120,50);
        pwdLabel3.setFont(font);
        pwdField1.setBounds(500,200,180,50);
        pwdField1.setFont(font);
        pwdField2.setBounds(500,300,180,50);
        pwdField2.setFont(font);
        pwdField3.setBounds(500,400,180,50);
        pwdField3.setFont(font);
        loginBtn.setBounds(400,500,140,50);
        this.add(pwdLabel1);
        this.add(pwdLabel2);
        this.add(pwdLabel3);
        this.add(pwdField1);
        this.add(pwdField2);
        this.add(pwdField3);
        this.add(loginBtn);
        this.setOpaque(false);
    }
}
